 <?php
//删除用户

include"conn.php";

 //第三步执行SQL

$id=isset($_get['id'])?$_get['id']:0;

$sql="delete from notes where id=$id";
$rs=$db->query($sql);//$rs如果成功，rs为真   如果失败   rs为假
if ($rs)
{
    header("Location:index.php");
}
else
{
    header("Location:index.php");
}